<template>
  <div>
    <el-button plain size="small" type="primary" icon="el-icon-plus" @click="menuAdd" v-if="$auth.checkMenuPermissions('system:menu:add')">新增菜单</el-button>
    <el-button plain size="small" type="warning" icon="el-icon-sort" @click="menuReplicate">折叠菜单</el-button>
  </div>
</template>

<script>
export default {
  methods: {
    menuAdd() {
      this.$emit('onOpenDialog')
    },
    menuReplicate() {
      this.$emit("onMenuReplicate");
    },
  },
};
</script>

<style scoped lang="scss">
div {
  margin-left: 30px;
}
</style>
